package com.uzai.console.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.uzai.console.dto.contract.ContractSignQuery;
import com.uzai.console.entity.SysContract;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
public interface SysContractMapper {


    int insert(SysContract sysContract);

    SysContract selectByType( @Param("merId") Long merId, @Param("status") Integer status);

    SysContract selectById(@Param("id") Long id, @Param("merId") Long merId);

    ArrayList<SysContract> selectByMerId(@Param("merId") Long merId);

    ArrayList<SysContract> findByList(Page<SysContract> page, @Param("query") ContractSignQuery query);

    ArrayList<SysContract> findByList(@Param("query") ContractSignQuery query);

    void updateBySingFlowId(@Param("signFlowId") String signFlowId, @Param("status") Integer status);


}
